<div id="article">
  <table width="100%" cellpadding="0" cellspacing="0" border="0">
    <tr>
      <td>{section name=sloop loop=$page start=$smarty.get.page-1 max=1}
        <h1 class="title" id="i{$data.id}">
          {$ptitle[$smarty.section.sloop.index]}
        </h1>
        {$page[sloop]}
        {/section}
      </td>
    </tr>
  </table>
  {if $pagecount > 1}
  <table width="100%" border="0">
    <tr>
      <td width="33%">{if $smarty.get.page > 1}
        <a href="{$smarty.server.SCRIPT_NAME}?mod={$smarty.get.mod}&amp;id={$smarty.get.id}&amp;page={$smarty.get.page-1}"><< Prev Page</a>
        {/if}</td>
      <td width="33%" align="center">
        <select name="page_select" onchange="window.open('{$smarty.server.SCRIPT_NAME}?mod={$smarty.get.mod}&amp;id={$smarty.get.id}&amp;page='+this.options[this.selectedIndex].value,'_top')">
          {section name=psloop loop=$pagecount}
          <option value="{$smarty.section.psloop.iteration}"{if $smarty.get.page == $smarty.section.psloop.iteration} selected="selected"{/if}>Page {$smarty.section.psloop.iteration} - {$ptitle[$smarty.section.psloop.index]}</option>
          {/section}
        </select>
      </td>
      <td width="33%">{if $smarty.get.page < $pagecount}
        <a href="{$smarty.server.SCRIPT_NAME}?mod={$smarty.get.mod}&amp;id={$smarty.get.id}&amp;page={$smarty.get.page+1}">Next Page >></a>
        {/if}
      </td>
    </tr>
  </table>
  {/if}
  <table width="100%" border="0">
  <tr>
    <td>{insert name="addthis" id=""}</td>
  </tr>
  <tr>
    <td><div class="meta">
        <p class="file">Posted by {$gcms_site_author} on {$data.pubdate|date_format:"%a, %d %b %Y %H:%M:%S %z"}<br />
        {if $data.moddate}
        {assign var='s' value='Modified on %s'|translate}{$data.moddate|date_format:"%a, %d %b %Y %H:%M:%S %z"|string_format:$s}<br />
        {/if}
        Tags: {$data.tags}{if $data.comments.tid != 0} | <a href="{$gcms_phpbb_url}/viewtopic.php?f={$data.comments.fid}&amp;t={$data.comments.tid}">{$data.comments.count} {'Comments'|translate}</a>{/if}{if $gcms_isadmin == true} | <a href="index.php?mod=admin&amp;action=content&amp;type=article&amp;id={$data.id}">Edit</a>{/if}</p>
      </div></td>
  </tr>
</table>
</div>
